home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / rjustify.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  671 b   |  30 lines

  1. <!--- This example shows how to use RJustify --->
  2. <CFPARAM name="jstring" default="">
  3.  
  4. <CFIF IsDefined("form.justifyString")>
  5.     <CFSET jstring = Rjustify(form.justifyString, 35)>
  6. </CFIF>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>
  10. RJustify Example
  11. </TITLE>
  12. </HEAD>
  13.  
  14. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  15. <BODY  bgcolor="#FFFFD5">
  16. <H3>RJustify Function</H3>
  17.  
  18. <P>Enter a string, and it will be right justified within
  19. the sample field
  20.  
  21. <FORM ACTION="rjustify.cfm" METHOD="POST">
  22. <P><INPUT TYPE="Text" VALUE="<CFOUTPUT>#jString#</CFOUTPUT>" SIZE=35 NAME="justifyString">
  23.  
  24. <P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
  25. </FORM>
  26.  
  27. </BODY>
  28. </HTML>       
  29.       
  30.